.container {
    width: 1000px;
    margin: 0 auto;
    background-color: rgb(214, 247, 214);
}

h1,
ul,
li {
    margin: 0;
    padding: 0;

}

li {
    list-style: none;
}
/* 垂直菜单 */
.menu1{
    width: 200px;
    height:160px;
    background-color: rgb(156, 184, 234);
}

.menu1 li{
    width: 200px;
    height: 39px;
    line-height: 39px;
    background-color: brown;
    border-bottom: 1px solid rgb(163, 135, 74);
}

.menu1 a{
    display: block;
    width: 170px;
    height: 39px;
    color:white;
    padding-left: 20px;
    border-left:10px solid rgb(163, 135, 74) ;
}

.menu1 a:hover{
    background-color: rgb(44, 25, 25);
    border-color: rgb(35, 163, 109);
}

.sep{
    height: 60px;
}

/* 水平菜单 */
.menu2{
    width: 1000px;
    height: 40px;
    margin-top: 10px;
    background-color: rgb(196, 162, 29);
}
.menu2 li{
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.menu2 a{
    display: block;
    color: aqua;
}

.menu2 a:hover{
    color: red;
}

.menu2 li:hover{
    background-color: blueviolet;
}
/* 水平菜单带垂直子菜单 */
.menu3{
    width:1000px;
    height: 40px;
    background-color: gray;
}

.menu3 li{
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}


.menu3 a{
    text-decoration: none;
    display: block;
    color:red;
    height: 39px;
    border-right:1px solid #ccc ;
    border-bottom: 1px solid #808080;

}

.menu3 a:hover{
    background-color: #666;
    color: white;
    border-bottom: 1px solid red;
}
.menu3 .submenu{
    visibility:hidden;
    width: 120px;
}

.menu3 li:hover .submenu{
    visibility: visible;
    position: relative;
    z-index: 100;
}

.menu3 .submenu li{
    height: 35px;
    line-height: 35px;
}

.menu3 .submenu a{
    background-color:#666;
}

.menu3 .submenu a:hover{
    background-color: #333;
    color:white;
}

.menu4{
    width:1000px;
    height: 40px;
    background-color: gray; 
    position: relative;
}

.menu4 li{
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.menu4 a{
    text-decoration: none;
    display: block;
    color:pink;
    height: 39px;
    border-right:1px solid #ccc ;
    border-bottom: 1px solid #808080;
}

.menu4 a:hover{
    background-color: #666;
    color: white;
    border-bottom: 1px solid red;
}

.menu4 .submenu{
    position:absolute;
    display: none;
    left: 0;
    top:40px;
    height: 40px;
    width: 900px;
    z-index: 100;
    border: 1px solid red;
}

.menu4 li:hover .submenu{
    display: block;
}

.menu4 .submenu li{
    float: left;
    background-color: #2200bb;
}